import request from '@/utils/request'

// 地址管理-列表
export const getAddressListData = () => {
  return request({
    url: '/api/address/list',
  })
}

// 地址管理-详情
export const getAddressDetailData = params => {
  return request({
    url: '/api/address/detail',
    params
  })
}

// 地址管理-省市县数据  
export const getAddressRegion = params => {
  return request({
    url: '/api/region/list',
    params
  })
}

// 地址管理-增加/修改
export const addEditAddressData = data => {
  return request({
    url: '/api/address/save',
    method:'post',
    data
  })
}

// 地址管理-删除
export const deleteEditAddressData = data => {
  return request({
    url: '/api/address/delete',
    method:'post',
    data
  })
}
